package Program;
/**
 * 按月拿固定工资的员工
 */
public class SalariedEmployee extends Employee {
 private float monthlySalary;

    public SalariedEmployee(String name, int birthday, float monthlySalary) {
        super(name, birthday);
        this.monthlySalary = monthlySalary;
    }
    public float countSalary() {
        return monthlySalary;
    }

    public float getMonthlySalary() {
        return monthlySalary;
    }

    public void setMonthlySalary(float monthlySalary) {
        this.monthlySalary = monthlySalary;
    }
}

